//
//  Person.h
//  OcDay6homework
//
//  Created by dllo on 16/5/28.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic,retain) NSString *name;
@property (nonatomic,assign) NSInteger age;

-(instancetype)initWithName:(NSString *)name withAge:(NSInteger)age;

+(instancetype)personWithName:(NSString *)name withAge:(NSInteger)age;

-(NSComparisonResult)compareWithName:(Person *)otherPerson;

-(NSComparisonResult)compareWithAge:(Person *)otherPerson;
@end
